package org.outerj.daisy.diff.html.ancestor.tagtostring;


import org.outerj.daisy.diff.html.ancestor.ChangeText;
import org.outerj.daisy.diff.html.ancestor.TagChangeSematic;
import org.outerj.daisy.diff.html.modification.HtmlLayoutChange;

/**
 * @see org.outerj.daisy.diff.html.ancestor.TagChangeSematic#STYLE
 */
public class ChangeStyle extends ChangeType {
	public TagChangeSematic getChangeType() {
		return TagChangeSematic.STYLE;
	}

	public void addChangeDescription(ChangeText txt,
			HtmlLayoutChange htmlLayoutChange, TagToString tagToString) {
		txt.addHtml("<b>");
		txt.addText(tagToString.getDescription());
		txt.addHtml("</b>");
		txt.addText(" "
				+ tagToString.getString(htmlLayoutChange.getStyleChangeStyle())
						.toLowerCase());
	}
}